home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™ 1987-1994 / MacHack™ '90 / MacHack 90 Contest Entries / Busy Box / Sources / busybox.h < prev    next >
Encoding:
C/C++ Source or Header  |  1990-06-14  |  1.7 KB  |  79 lines  |  [TEXT/KAHL]

  1. /* file: busybox.h    */
  2. #define int8    char
  3. #define    int16    int
  4. #define    int32    long
  5. #define nil    0l
  6.  
  7. /* file: arith.c    */
  8. int abs(int);
  9.  
  10. /* for Radar.c    */
  11. void InitRadarObj(Rect*, int16);
  12. void DrawRadarObj(int16);
  13.  
  14. /* for RandomDot.c    */
  15. void InitRandomDotObj(Rect*, int16);
  16. void DrawRandomDotObj(int16);
  17.  
  18. /* for RandomDot2.c    */
  19. void InitRandomDot2Obj(Rect*, int16);
  20. void DrawRandomDot2Obj(int16);
  21.  
  22. /* for FYAH.c    */
  23. void InitFYAHObj(Rect*, int16);
  24. void DrawFYAHObj(int16);
  25.  
  26. /* For BusyBox.c    */
  27. void BeBusy(void);
  28. void SetUp(int16);
  29. void TakeDown(int16);
  30. void DoSomeUpdateStuff(void);
  31. void StowObjInfo(Rect*, int16);
  32. void InitBusyBox(void);
  33. void InitManagers(int16);
  34.  
  35. /* for heartbeat.h    */
  36. void InitHeartBeatObj(Rect *drawArea, int16 ID);
  37. void DrawHeartBeatObj(int16 ID);
  38.  
  39. /* for Ball.c */
  40. void InitSillyBallz(Rect*, int16);
  41. void DrawSillyBallz(int16);
  42.  
  43. /* for meter.c */
  44. void InitMeterObj(Rect *drawArea, int16 ID);
  45. void DrawMeterObj(int16 ID);
  46.  
  47. /* About dialog resource ID */
  48. #define AboutDlog 128
  49.  
  50. /* Menu resource IDs */
  51. #define AppleID    128
  52. #define FileID    129
  53. #define EditID    130
  54.  
  55. /* Apple menu definitions */
  56. #define appleMenu        0    /* apple menu index */
  57. #define appleabout    1
  58.  
  59. /* file menu definitions */
  60. #define fileMenu    1    /* file menu index */
  61. #define quitCmd        1    /* the quit choice */
  62.  
  63. /* edit menu definitions */
  64. #define editMenu    2    /* edit menu index */
  65. #define undoCmd        1    /* undo command choice */
  66. #define cutCmd        3    /* cut command choice */
  67. #define copyCmd        4    /* copy command choice */
  68. #define pasteCmd    5    /* paste command choice */
  69. #define clearCmd    6    /* clear command choice */
  70.  
  71.  
  72. typedef struct ObjInfo    {
  73.     RgnHandle    clip;    /* Clipping region    */
  74.     Rect    rect;    /* Frame rectangle    */
  75.     int16    h;    /* SetOrigin values    */
  76.     int16 v;
  77. }    ObjInfo;
  78. extern ObjInfo    stuff[20];
  79.